package consts

import (
	"github.com/gogf/gf/v2/net/ghttp"
)

var (
	CtxUserInfoKey    = "userInfo"
	Server            *ghttp.Server
	AuthorizationText = "Authorization"
)

const (
	RegisterTypeConsul int = 1 // cunSul
)

const HttpExecTimeout = 300 // http任务执行时间不超过300秒

const (
	Disabled int = 99 // 禁用
	Failure  int = 0  // 失败
	Enabled  int = 1  // 启用
	Running  int = 10 // 运行中
	Finish   int = 2  // 完成
	Cancel   int = 3  // 取消
)

const (
	TaskHTTPMethodGet  string = "GET"
	TaskHTTPMethodPost string = "POST"
)

var (
	UserStatusEnable  = 0
	UserStatusDisable = 1
)
